package booroo.basic;

public class J13_Q77_Books_OOP {

	public static void main(String[] args) {
		// 도서 관리 시스템(OOP)
		J13_Book book = 
			new J13_Book(12345,22500,"누구나 알기쉬운 Java","혜지원","카와바 타케시","미스테리 스릴러",
					"2014-06-10 12:12:12",false);
		J13_Book books[] = new J13_Book[5]; // 대여한 책을 저장하기 위해 배열 선언
		books[0] = book;	// 대여한 책을 배열에 저장
		J13_Member member =
			new J13_Member(98765,"수지","123-456-789","서울",books,12345);
		System.out.println(book.toString());	// 도서정보 출력
	}// main

}// class

class J13_Book{
	private int bookNo,price;
	private String bookName,publisher,author,genre,regDate;
	private boolean isRent;
	public J13_Book(int bookNo,int price,String bookName,String publisher,
			String author,String genre,String regDate,boolean isRent) {
		this.bookNo = bookNo;
		this.price = price;
		this.bookName = bookName;
		this.publisher = publisher;
		this.author = author;
		this.genre = genre;
		this.regDate = regDate;
		this.isRent = isRent;
	}
	@Override
	public String toString() {
		String bookInfo = "도서명 : " + bookName;
		bookInfo += "출판사: " + publisher;
		
		return bookInfo;
	}
}
class J13_Member{
	private int memberNo;
	private String name,telNo,address;
	private J13_Book rBooks[];
	private int mileage;
	public J13_Member(int memberNo,String name,String telNo,String address,
			J13_Book rBooks[],int mileage) {
		this.memberNo = memberNo;
		this.name = name;
		this.telNo = telNo;
		this.address = address;
		this.rBooks = rBooks;
		this.mileage = mileage;
	}
}
class J13_Employee{}
